import { Component } from '@angular/core';
import { IonicPage, NavController } from 'ionic-angular';

/**
 * Generated class for the TabsPage tabs.
 *
 * See https://ionicframework.com/docs/components/#navigation for more info on
 * Ionic pages and navigation.
 */

@IonicPage()
@Component({
  selector: 'page-tabs',
  templateUrl: 'tabs.html'
})
export class TabsPage {

  private tabRoots: any;

	constructor(public navCtrl: NavController) {
		this.tabRoots = new Array();
		this.tabRoots = [{
				root: "HomePage",
				tabTitle: '待办',
				tabIcon: 'briefcase',
				tabUrlPath: 'home'
			},
			{
				root: "TaskPage",
				tabTitle: '任务',
				tabIcon: 'alarm',
				tabUrlPath: 'task'
			},
			{
				root: "OfficePage",
				tabTitle: '综合办公',
				tabIcon: 'apps',
				tabUrlPath: 'office'
			},
			{
				root: "CenterPage",
				tabTitle: '个人',
				tabIcon: 'contact',
				tabUrlPath: 'center'
			}
		];
	}
	/*界面加载*/
	ionViewDidLoad() {
		console.log('ionViewDidLoad TabsPage');
  }
}